package com.hdl.school.utils;

import android.content.Context;
import android.content.SharedPreferences;

/**
 * Created by yunjian on 16/10/9.//
 */
public class Config {

    public static final boolean DEBUG=true;
    //服务器地址
//    public static final String SERVICE_IP="192.168.21.135";
//    public static final String FTP_IP="192.168.21.135";

    public static final String SERVICE_IP="192.168.21.250";
    public static final String FTP_IP="192.168.21.250";

    //ftp服务器用户名
    public static final String FTP_USER="school";

    //ftp服务器用户名
    public static final String FTP_PASSWD="school";


    public static final int FTP_PORT=21;


    public static final String FTP_DOWNLOADDIR="/sdcard/school/ftp/file/";


    public static String getServerIp(Context context){
        SharedPreferences sharedPreferences=context.getSharedPreferences("school",0);
        String ip=sharedPreferences.getString("ip",Config.SERVICE_IP);
        return ip;
    }

}
